package com.webcat.dify.kb.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 * 片段信息
 */
@Data
public class Segment {
    private String id;

    /**
     * 片段位置编号
     */
    private String position;

    /**
     * 片段所在文档id
     */
    @JSONField(name = "document_id")
    private String documentId;

    /**
     * 内容
     */
    private String content;

    /**
     * 内容
     */
    @JSONField(name = "sign_content")
    private String signContent;

    private String answer;

    @JSONField(name = "word_count")
    private int wordCount;

    private int tokens;

    private List<String> keywords;

    @JSONField(name = "index_node_id")
    private String indexNodeId;

    @JSONField(name = "index_node_hash")
    private String indexNodeHash;

    @JSONField(name = "hit_count")
    private int hitCount;

    private boolean enable;

    @JSONField(name = "disabled_at")
    private long disabledAt;

    @JSONField(name = "disabled_by")
    private String disabledBy;

    private String status;

    @JSONField(name = "created_at")
    private long createdAt;

    @JSONField(name = "created_by")
    private String createdBy;

    @JSONField(name = "indexing_at")
    private long indexingAt;

    @JSONField(name = "completed_at")
    private String completedAt;

    @JSONField(name = "stopped_at")
    private String stoppedAt;

    private String error;

    private Document document;

}
